package com.boyinet.activation.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author lengchunyun
 */
@Controller
public class IndexController {

    private static final String PREFIX_PAGE = "page/";

    @GetMapping("toLogin")
    public String toLogin() {
        return PREFIX_PAGE + "login";
    }

    @GetMapping("toIndex")
    public String toIndex() {
        return PREFIX_PAGE + "index";
    }

    @GetMapping("toNotFound")
    public String toNotFound() {
        return PREFIX_PAGE + "404";
    }
}
